package max.t;

//import com.whatever.R;


import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.Spinner;
import android.widget.TabHost;



public class TabTestActivity extends Activity implements OnClickListener{
	
	TabHost tabHost1;
	Spinner spinner1;
	Button button1;
	LinearLayout Lin1;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        tabHost1 = (TabHost) findViewById(R.id.tabHost1);
        tabHost1.setup();
        
        TabHost.TabSpec spec1 = tabHost1.newTabSpec("Tab1");
        spec1.setContent(R.id.tab1);
        spec1.setIndicator("TAB1");
        tabHost1.addTab(spec1);
        
        TabHost.TabSpec spec2 = tabHost1.newTabSpec("Tab2");
        spec2.setContent(R.id.tab2);
        spec2.setIndicator("TAB2");
        tabHost1.addTab(spec2);
        
        TabHost.TabSpec spec3 = tabHost1.newTabSpec("Tab3");
        spec3.setContent(R.id.tab3);
        spec3.setIndicator("TAB3");
        tabHost1.addTab(spec3);
        
        TabHost.TabSpec spec4 = tabHost1.newTabSpec("Tab4");
        spec4.setContent(R.id.tab4);
        spec4.setIndicator("TAB4");
        tabHost1.addTab(spec4); 
        
        spinner1 = (Spinner) findViewById(R.id.spinner1);
        ArrayAdapter favouritecolor = ArrayAdapter.createFromResource(this,R.array.whatisyourfavouritecolor,android.R.layout.simple_spinner_item);
        spinner1.setAdapter(favouritecolor);
        
        button1 = (Button) findViewById(R.id.button1);
        button1.setOnClickListener(this);
        button1.setText("calculator");
        
//        Lin1 = (LinearLayout) findViewById(R.id.Lin1);
     //   Lin1.setColor(Color.BLUE);
        
    }


	public void onClick(View v) {
		// TODO Auto-generated method stub
		Intent intent = new Intent(this,Calculator2Activity.class);
		this.startActivity(intent);
				}
		
	
}
